#include <stdio.h>
int main(void){
	int n,m,i,j,count=0;
	printf("plz enter the lower and upper bound:\n");
	scanf("%d%d",&m,&n);
	for(i=m;i<=n;i++){
		j=2;
		while(i%j!=0 && j<i){
			j++;
		}
		if(i==j){
			printf("%7d  ",i);
			count++;
			if(count%10==0){
				printf("\n");
			}
		}
	}
	return 0;
}
